package thread.lock.reentrallock;

/**
 * Created by mHandler on 2018/6/3 0003.
 * Description:ReentralLock的简单使用
 */
public class LockTest {
    public static void main(String[] args) {
        MyService service = new MyService();
        MyThread thread1 = new MyThread(service);
        MyThread thread2 = new MyThread(service);
        MyThread thread3 = new MyThread(service);
        MyThread thread4 = new MyThread(service);
        thread1.start();
        thread2.start();
        thread3.start();
        thread4.start();
    }
}
